<template>
	<view class="container">
		<view class="list">
			<view class="item" @click="toAdd">
				<image class="bg" :src="$img_path('/pagesRegion/25.png')" mode="scaleToFill"></image>
				<view class="info">
					<view class="c-1">
						<view class="left">
							<!-- <image :src="$img_path('/pagesRegion/26.png')" mode="widthFix"></image> -->
							<text>支付宝</text>
						</view>
						<image @click.stop="delCard()" :src="$img_path('/pagesRegion/24.png')" mode="widthFix"></image>
					</view>
					
					<view class="i-text">
						<view class="i-view">
							<view>持卡人</view>
							<view>李**</view>
						</view>
						<view class="i-view">
							<view>银行卡预留手机号</view>
							<view>1234***910</view>
						</view>
						<view class="i-view">
							<view>银行卡号</view>
							<view>1234********9100</view>
						</view>
					</view>
				</view>
			</view>
			
			<view class="item add-box" @click="toAdd">
				<image :src="$img_path('/pagesRegion/23.png')" mode="widthFix"></image>
				<text>添加银行卡</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			toAdd(){
				uni.navigateTo({
					url:'/pagesRegion/bankCard/add'
				})
			},
			delCard(){
				
			}
		}
	}
</script>
<style>
	page{
		background-color: #FFFFFF;
	}
</style>
<style lang="scss" scoped>
.container{
	.list{
		padding: 18rpx 32rpx 0;
		box-sizing: border-box;
		.item{
			width: 686rpx;
			height: 358rpx;
			padding: 32rpx 24rpx 32rpx 30rpx;
			box-sizing: border-box;
			margin: 36rpx auto 0;
			position: relative;
			border-radius: 20rpx;
			&>image.bg{
				width: 100%;
				height: 100%;
				position: absolute;
				top: 0;
				left: 0;
			}
			.info{
				position: relative;
				z-index: 2;
				.c-1{
					display: flex;
					align-items: center;
					justify-content: space-between;
					.left{
						display: flex;
						align-items: center;
						image{
							width: 82rpx;
							height: 82rpx;
						}
						text{
							font-weight: 400;
							font-size: 36rpx;
							color: #FFFFFF;
							line-height: 50rpx;
							margin-left: 36rpx;
						}
					}
					&>image{
						width: 43.8rpx;
						height: 43.4rpx;
					}
				}
				.i-text{
					display: flex;
					flex-wrap: wrap;
					justify-content: space-between;
					margin-top: 4rpx;
					.i-view{
						width: 45%;
						view{
							font-weight: 400;
							font-size: 28rpx;
							color: #FFFFFF;
							line-height: 40rpx;
							padding-top: 12rpx;
						}
					}
				}
			}
		}
		
		.add-box{
			display: flex;
			align-items: center;
			justify-content: center;
			flex-direction: column;
			border: 2rpx dashed #E72A2A;
			image{
				width: 56rpx;
				height: 56rpx;
			}
			text{
				font-weight: 500;
				font-size: 32rpx;
				color: #E72A2A;
				line-height: 44rpx;
				margin-top: 8rpx;
			}
		}
	}
}
</style>
